package zlx.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import zlx.commons.entities.CommonResult;
import zlx.commons.entities.Payment;

@FeignClient(value =  "ZLX.SPRINGCLOUD")
@Component
public interface PaymentFeignService {
    @GetMapping(value = "/payment/get/{id}")
    public CommonResult<Payment> getPayment(@PathVariable("id") Long id);
    @GetMapping(value = "/payment/feign/timeout")
    public String paymentTimeout();
}
